package com.xinghou.platform.dao.main;


import java.util.List;

import org.springframework.dao.DataAccessException;

import com.xinghou.platform.model.main.Photo;


/**
 * @author liuwei.wen
 *
 */
public interface PhotoDAO {

	 public Photo getPhotoById(Integer Id)throws DataAccessException;
	 
	 public int updatePhoto(Photo photo) throws DataAccessException;
		
	 public int savePhoto(Photo photo) throws DataAccessException;
	 
	 public List<Photo> getPhotos(Integer userid,Integer fromno,Integer limit)throws DataAccessException;
	 
	 public Photo PhotoByuserId(Integer frompage,Integer userId,Integer endpage)throws DataAccessException;
}
